<%@ Page Theme="Default" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="webapp4U.UI._Default" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register Namespace="webapp4U.UI" TagPrefix="webapp4U" %>
<%@ Register TagPrefix="uc" Src="~/Controls/ProductByParent.ascx" TagName="ProductByParent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ID="TitleID" />

<asp:UpdatePanel ID="UserUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    
<table border="0" cellpadding="4" cellspacing="0" width="500px" align="center">
<tr>
    <td align="center">
        <asp:Panel runat="server" ID="Panel_ProductByCate">
          <!-- begin San Pham -->
          <asp:DataList ID="ItemsDataList" runat="server" Width="100%" 
          RepeatDirection="Horizontal"   
          EnableViewState="False" 
          CellPadding="10" 
          ItemStyle-HorizontalAlign="left"
          RepeatColumns="3">
            <ItemTemplate>
                <table border="0" align="left" style="table-layout:fixed;">
                    <tr>
                        <td class="BorderImage" width="140" height="140" align="center">
                            <a href="SlideShow.aspx?BosuutapID=<%#Eval("BosuutapID")%>">
                                <img border="0" src='<%=Globals.ApplicationPath %>Bosuutap/Image.ashx?Action=Logo&Size=M&ImageUrl=<%# webapp4U.BOL.Companies.GetLogo((int)Eval("CompanyID")) %>' />
                            </a>
                        </td>
                    </tr>
                    <tr height="20">
                        <td align="center" class="ProductPrice" style="font-weight:bold; color:#5ed3f6">
                            <a class="ProductPrice" href="SlideShow.aspx?BosuutapID=<%#Eval("BosuutapID")%>">
                                <%# (Globals.LangVietNam())? Eval("Title") : Eval("Title_en") %>
                            </a>
                        </td>
                    </tr>
                     <tr height="30">
                        <td align="center" style="font-weight:bold; color:#5ed3f6">
                            <a class="ProductName" href="SlideShow.aspx?BosuutapID=<%#Eval("BosuutapID")%>">
                                <%# webapp4U.BOL.Companies.GetCompanyName((int)Eval("CompanyID")) %>
                            </a>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
          </asp:DataList>
        <!-- end San Pham -->
        </asp:Panel>
    </td>
</tr>
</table>

<div align="center">
    <asp:Panel ID="DisplayPager" Visible="True" runat="server">
        <div align="center">
            <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                <tr>
                    <td valign="middle" align="center">
                        <webapp4U:Pager ID="Pager" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
</div>

  </ContentTemplate>
</asp:UpdatePanel>    
           
                             
</asp:Content>

